// import { FormProps, FormSchema } from '/@/components/Table';
import { BasicColumn } from '/@/components/Table/src/types/table';

export function getCols(): BasicColumn[] {
  return [
    {
      title: '通道',
      dataIndex: 'channel',
      key: 'channel',
    },
    {
      title: '警告内容',
      dataIndex: 'warnStr',
      key: 'warnStr',
    },
    {
      title: '触发阈值',
      dataIndex: 'data1',
      key: 'data1',
    },
    {
      title: '告警等级',
      dataIndex: 'warnLevel',
      key: 'warnLevel',
    },
    {
      title: '告警时间',
      dataIndex: 'createDate',
      key: 'createDate',
    },
    {
      title: '操作',
      dataIndex: 'action',
      key: 'action',
    },
  ];
}

export function getRows() {

  return (() => {
    const arr: any = [];
    for (let index = 0; index < 40; index++) {
      arr.push({
        id: `${index}`,
        title: '低温告警',
        limit: '0度',
        level: '一般',
        exceed: 2.5,
        created_at: '2022-12-31 11:23',
        action: '',
      });
    }
    return arr;
  })();
}

